using System;

namespace Frame
{
    using UnityEngine;

    public class GameRoot : MonoBehaviour
    {
        public static GameRoot Instance = null;

        private void Start()
        {
            Instance = this;
            DontDestroyOnLoad(this);
            Init();
        }

        private void Init()
        {
            ResSvc res = GetComponent<ResSvc>();
            res.InitSvc();
            AudioSvc audio = GetComponent<AudioSvc>();
            audio.InitSvc();
        }
    }
}